package com.lill.sale.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lill.common.component.util.IdUtil;
import com.lill.sale.dao.IBaseInsuranceCompanyDao;
import com.lill.sale.model.BaseInsuranceCompanyModel;
import com.lill.sale.service.IBaseInsuranceCompanyService;

/**
 * 保险公司Service实现类
 *
 * @author lill
 * @date 2021-10-24 00:56:06
 */
@Service("baseInsuranceCompanyService")
public class BaseInsuranceCompanyServiceImpl implements IBaseInsuranceCompanyService {
    @Autowired
    private IBaseInsuranceCompanyDao baseInsuranceCompanyDao;

    public BaseInsuranceCompanyModel queryObject(String id) {
        return baseInsuranceCompanyDao.queryObject(id);
    }

    public List<BaseInsuranceCompanyModel> queryList(Map<String, Object> map) {
        return baseInsuranceCompanyDao.queryList(map);
    }

    public int queryTotal(Map<String, Object> map) {
        return baseInsuranceCompanyDao.queryTotal(map);
    }

    public int save(BaseInsuranceCompanyModel baseInsuranceCompany) {
        baseInsuranceCompany.setId(IdUtil.createIdbyUUID());
        return baseInsuranceCompanyDao.save(baseInsuranceCompany);
    }

    public int update(BaseInsuranceCompanyModel baseInsuranceCompany) {
        return baseInsuranceCompanyDao.update(baseInsuranceCompany);
    }

	public int deleteLogicByMap(Map<String, Object> map) {
		return baseInsuranceCompanyDao.deleteLogicByMap(map);
	}
}
